package com.xy.blog.zuul.feign;

import com.xy.blog.zuul.feign.model.req.LoginReqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description:
 * @date 2020/3/10
 */
@FeignClient(value = "xy-blog-user")
public interface AccountServiceImpl  {


    /**
     * 用户登录
     * @param reqVO
     * @return
     */
    @PostMapping("/v1/account/login")
    Object login(@RequestBody LoginReqVO reqVO);

    /**
     * 验证Token
     * @param token
     * @return
     */
    @GetMapping("/v1/account/validate-token")
    String validateToken(@RequestParam("token") String token);

}
